      <div class="header navbar">
        <div class="header-container">
          <div class="nav-logo">
            <a href="/">
              <b><img src="{{ asset('/assets/img/logo.png') }}" alt=""></b>
              <span class="logo">
                <img src="{{ asset('/assets/img/logo-text.png') }}" alt="">
              </span>
            </a>
          </div>
          <ul class="nav-left">
            <li>
              <a class="sidenav-fold-toggler" href="javascript:void(0);">
                <i class="lni-menu"></i>
              </a>
              <a class="sidenav-expand-toggler" href="javascript:void(0);">
                <i class="lni-menu"></i>
              </a>
            </li>
          </ul>
          <ul class="nav-right">
            @guest

            @else
            <li class="user-profile dropdown dropdown-animated scale-left">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                {{$user->name}}
              </a>
              <ul class="dropdown-menu dropdown-md">
                <li role="separator" class="divider"></li>
                <li>
                  <a href="{{ route('users.edit', $user->id) }}">
                    <i class="lni-cog"></i>
                    <span>更改资料</span>
                  </a>
                </li>
                <li>
                  <a href="{{ route('logout') }}" onclick="event.preventDefault();
                                             document.getElementById('logout-form').submit();">
                    <i class="lni-lock"></i>
                    <span>退出登录</span>
                  </a>
                  <form action="{{ route('logout') }}" method="POST" id="logout-form">
                    {{ csrf_field() }}
                  </form>
                </li>
              </ul>
            </li>
            @endguest
          </ul>
        </div>
      </div>
